package biz.impl;

import biz.UsersBiz;
import mapper.UsersMapper;
import org.apache.ibatis.session.SqlSession;
import org.example.bean.UsersInfo;


public class UsersBizImpl implements UsersBiz {
    private UsersMapper um;
    private SqlSession session;

    public UsersBizImpl(SqlSession session) {
        this.session = session;
        um = session.getMapper(UsersMapper.class);
    }

    @Override
    public UsersInfo findUsersByPhone(String phone, String pass) {
        return um.findUsersByPhone(phone,pass);
    }
}
